package com.cheng.xbsc.mapper;

import com.cheng.xbsc.entity.SysOrder;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SysOrderMapper extends Mapper<SysOrder> {

    Integer countAll(Integer userId);


    List<SysOrder> findByStatus(@Param("userId") Integer userId, @Param("status") String status);

    void updateStatusById(@Param("orderId") Integer orderId, @Param("status") String status);
}